package com.lv.common.utils;


import android.content.Context;
import android.os.Environment;

import java.io.File;

/**
 * 维护的一些常量
 */
public class Constants {
    /**
     * 墩墨心上 座机
     **/
    public static final String DMXS_TEL = "023-68188505";
    public static final String DMXS_TEL_BOSS = "18382383335";
    public static final int pageSize = 24;
    /**
     * SharePrefrence  是否打开过App
     **/
    public static final String ISOPEND = "is_open";
    public static final String FLAVOR_LOCAL = "local";
    public static final String KEY_CPYID = "key_cpyid";
    public static final String KEY_SWITCH_T = "key_switch_t";
    public static final String KEY_MAP_POINT = "key_map_point";

    public static final String FLAVOR_INTERNATIONAL = "international";
    /**
     * SharePrefrence  是否打同意过用户协和隐私政策 弹窗
     **/
    public static final String ISFRISTLOAD = "is_frist_load";
    /**
     * 用户显示位置的标记 省份
     */
    public static final String SP_KEY_ADDRESS_PROVINCE = "sp_key_address_province";
    public static final String SP_KEY_BOOK_ADDRESS_PROVINCE = "sp_key_book_address_province";

    /**
     * 定位时间间隔
     */
    public static final String LOCATION_TIME_KEY = "location_time_key";

    /**
     * 用户上传回执显示位置的标记 省
     */
    public static final String ADDRESS_PROVINCE_RECEIPT_KEY = "address_province_receipt_key";
    /**
     * 用户上传回执显示位置的标记 市
     */
    public static final String ADDRESS_CITY_RECEIPT_KEY = "address_city_receipt_key";
    /**
     * 用户上传回执显示位置的标记 区
     */
    public static final String ADDRESS_AREA_RECEIPT_KEY = "address_area_receipt_key";
    /**
     * 用户上传回执显示位置的标记 街道
     */
    public static final String ADDRESS_TOWN_RECEIPT_KEY = "address_town_receipt_key";

    //地址选择器数据
    public static final String ADDRESS_NET = "https://www.suyiyong.cn/address.json";
    public static final String ADDRESS_NET_NEWRECEIPT = "https://www.suyiyong.cn/newreceiptAddress.json";
    //    public static final String ADDRESS_NET_FACTORY_BORDER = "https://www.suyiyong.cn/findkuang.json";//工厂展示边框
    public static final String ADDRESS_NET_FACTORY_BORDER = "https://www.suyiyong.cn/newfindkuang.json";//工厂展示边框
    //四级地址的Code 和后台返回不一样就更新
    public static final String ADDRESS_NET_CODE = "address_net_code";

    /**
     * SharePrefrence  用户协和隐私政策 弹窗 对应的版本号
     **/
    public static final String ISFRISTLOADVERSION = "isfrist_load_version";
    /**
     * 货圈视频最长时间
     */
    public static final int VIDEO_DURATION_CIR = 20;

    public static final String KEY_POS_HZ_P_ONLINE = "key_pos_hz_online";//回执是否是线上
    public static final String KEY_POS_HZ_P_STR = "key_pos_hz_p_str";//回执发布省份
    public static final String KEY_POS_HZ_P_C_A = "key_pos_hz_p_c_a";//回执发布省市区
    public static final String KEY_POS_HZ_CATEGORY = "key_pos_hz_category";//回执分类
    public static final String KEY_POS_HZ_TIME = "key_pos_hz_time";//上传回执时间
    public static final String KEY_OPEN_CITY = "key_open_city";//开户存储的上次使用的地址数据

    /**
     * SharePrefrence更新信息保存
     **/
    public static final String DK_UPDATE = "dk_Update";
    /**
     * 微信支付的appId
     **/
    public static final String WXAPP_ID = "wx2c7fdc3386fe74af";
    public static final String QQ_ID = "1110523577";
//
//
//    /**
//     * 用于支付宝支付业务的入参 app_id。
//     */
//    public static final String APPID = "2021002175675928";
//
//    /**
//     * 用于支付宝账户登录授权业务的入参 pid。
//     */
//    public static final String PID = "2088241389582594";
//
//    /**
//     * 用于支付宝账户登录授权业务的入参 target_id。
//     */
//    public static final String TARGET_ID = "2088241389582";
//
//    /**
//     * pkcs8 格式的商户私钥。
//     * <p>
//     * 如下私钥，RSA2_PRIVATE 或者 RSA_PRIVATE 只需要填入一个，如果两个都设置了，本 Demo 将优先
//     * 使用 RSA2_PRIVATE。RSA2_PRIVATE 可以保证商户交易在更加安全的环境下进行，建议商户使用
//     * RSA2_PRIVATE。
//     * <p>
//     * 建议使用支付宝提供的公私钥生成工具生成和获取 RSA2_PRIVATE。
//     * 工具地址：https://doc.open.alipay.com/docs/doc.htm?treeId=291&articleId=106097&docType=1
//     */
//    public static final String RSA2_PRIVATE = "MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQCZM6AbxSBN7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XFv3OmUhHfr/alRpR5or67yOy5PyYzsHKRlivqQ+Ov3iStzauVBWd3OFgePCkhxT3r9tf/evD+bv2hT1+QpphXctvErkENQl+JHtvnZJiNw4MinOKVDl2/aYcEW/M113AoGAe8LEf+8ukAHdZeU3Nyo35kQba9MJg6YwQnExPrPMCGLjp9FlMLD32uo1Y+42F17WY68xbtDMxZutH8XZ4LcCclNxKruHl8Cg2c2WgJgAgAH8Qld3YKAWCm9qHOqtr25hqnHSC1+dW2i6OTeREJiJVS3sVb/ycnSlJcE6BLPyplcCgYAnqngvkQp90GvkMHoClUIT6vN2qglgmDfVdLIhx1ba/SwPvKatyJnseS+xCfxjX/+0t9te0lCI73/tJHqRi7eMj+SK+IYWejAAWrIn1Yh8ciCg0gbyA4FenlGPuie8F8RRoCqSWRqwFpeNB/JNudnLiD8DH7CwU1ARB2lXxCie2Q==";
//    public static final String RSA_PRIVATE = "";


    public static final String APP_LOCAL_DIR = File.separator + "suyiyong_work_temp";

    public static final String PIC_FILE = Environment.getExternalStorageDirectory().getAbsolutePath() + APP_LOCAL_DIR;

    public static final String KEY_PIC_TYPE = "key_pic_type";//0 门头 1 名片 2 货单

    /**
     * SharePrefrence 记录本地腾讯云token的Key
     */
    public static final String KEY_CHAT_TOKEN = "key_chat_token";

    /**
     * SharePrefrence 记录商品基本属性的Key
     */
    public static final String KEY_GOODS_ATTRIBUTE = "key_goods_attribute";
    /**
     * SharePrefrence 记录商品基本属性的Key-历史属性
     */
    public static final String KEY_GOODS_HISTORY_ATTRIBUTE = "key_goods_history_attribute";


    /**
     * SharePrefrence 记录软键盘高度的Key
     */
    public static final String SHARE_PREFERENCE_SOFT_INPUT_HEIGHT = "soft_input_height";


    /**
     * 是否显示设计人员要看的图片蒙层
     **/
    public static final boolean isShowPicAlpha = false;

    /**
     * 消息ID
     */
    public static final String ID_YW = "syy0000000"; //业务消息
    public static final String ID_TZ_OLD = "syy0000001";//通知消息
    public static final String ID_HD_OLD = "syy0000002"; //互动消息
    public static final String ID_FW_OLD = "syy0000003"; //访问消息
    public static final String ID_TJ = "syy0000004"; //推荐消息
    public static final String ID_TZ = "syy0000006"; //重要通知
    public static final String ID_JY = "syy0000007"; //交易消息
    public static final String ID_FW = "syy0000008"; //访问消息
    public static final String ID_HD = "syy0000009"; //互动消息

    //MARK: 业务员
    // 风险下线
    public static final String SYY_YWY_FXXX = "syy0000060";
    // 审核通知
    public static final String SYY_YWY_SHTZ = "syy0000061";
    // 过期通知
    public static final String SYY_YWY_GQTZ = "syy0000062";
    // 开户申请
    public static final String SYY_YWY_KHSQ = "syy0000063";
    // 找货大全
    public static final String SYY_YWY_ZHDQ = "syy0000064";
    // 商机信息
    public static final String SYY_YWY_SJXX = "syy0000065";
    // 审批
    public static final String SYY_YWY_SP = "syy0000066";
    // 人员变动
    public static final String SYY_YWY_RYBD = "syy0000067";
    // 报物流审批 抄送
    public static final String SYY_YWY_BWLCS = "syy0000068";
    // 生日提醒
    public static final String SYY_YWY_BIRTHDAY = "syy0000069";
    // 我要找货
    public static final String SYY_YWY_FIND_GOODS = "syy0000070";
    //指定商家
    public static final String SYY_YWY_ZDSJ = "syy0000071";
    //转入审批
    public static final String SYY_YWY_ZRSP = "syy0000072";
    //退款审批
    public static final String SYY_YWY_REFUND = "syy0000073";
    //充值返现
    public static final String SYY_YWY_CZFX = "syy0000074";

    public static final String KEY_SWITCH_FAND_MESSAGE = "key_switch_fand_message"; //访问消息
    public static final String KEY_SWITCH_ACTION_MESSAGE = "key_switch_action_message"; //互动消息


    /**
     * SharePrefrence 速易甬分享店铺
     */
//    public static final String KEY_SHARE_COMPANY = "t4?d=2&h=0&t=4&ti=";
    public static final String KEY_SHARE_COMPANY = "shopIndex?d=2&p=2&tt=0&h=0&t=4&ti=";
    /**
     * SharePrefrence 速易甬官网
     */
    public static final String KEY_HOME_SYY = "https://www.suyiyong.cn/";
    /**
     * SharePrefrence 速易甬分享头
     */
//    public static final String KEY_SHARE_HEADER_SYY = "https://www.suyiyong.cn:8099/syy/";
    public static final String KEY_SHARE_HEADER_SYY = "https://www.suyiyong.cn:8888/";
    public static final String KEY_DEFAULT_PIC_SYY = "https://suyiyong.oss-cn-hangzhou.aliyuncs.com/wx/lhy/10241683603328211.jpg";//速易甬logo图片
    public static final String KEY_COMPANY_COMMON_MEDIA_SYY = "/syy_o_media_common_company";
    public static final String KEY_COMPANY_MEDIA_SYY = "/syy_o_media_company";
    public static final String ALIHEADER = "https://suyiyong.oss-cn-hangzhou.aliyuncs.com/";//阿里直传图片的头
    //小程序绑定的视频样例
    public static final String MINITEMPLATE = "https://suyiyong.oss-cn-hangzhou.aliyuncs.com/iOS/projectPic/addWXMiniIntroduce.mp4";
    public static final String FRIST_PIC = "?x-oss-process=video/snapshot,t_0,f_jpg,w_0,h_0,m_fast,ar_auto";
    public static final String FRIST_PIC_NO = "x-oss-process=video/snapshot,t_0,f_jpg,w_0,h_0,m_fast,ar_auto";

    public static String getPicPath(Context mContext) {
        return MyUtils.getSDPath(mContext) + File.separator + "pic_ssy";
    }

    /**
     * 121 返现审批
     */
    public static final String MESSAGE_TAG_121 = "121";

    /**
     * 1000 货圈风险下线
     */
    public static final String MESSAGE_TAG_1000 = "1000";

    /**
     * 1001 商品风险下线
     */
    public static final String MESSAGE_TAG_1001 = "1001";

    /**
     * 1002 名片风险下线
     */
    public static final String MESSAGE_TAG_1002 = "1002";

    /**
     * 1003 货圈上线通过
     */
    public static final String MESSAGE_TAG_1003 = "1003";
    /**
     * 1004 货圈上线拒绝
     */
    public static final String MESSAGE_TAG_1004 = "1004";
    /**
     * 1005 商品上架通过
     */
    public static final String MESSAGE_TAG_1005 = "1005";
    /**
     * 1006 商品上架拒绝
     */
    public static final String MESSAGE_TAG_1006 = "1006";
    /**
     * 1007 店铺上架拒绝
     */
    public static final String MESSAGE_TAG_1007 = "1007";
    /**
     * 1008 店铺上架通过
     */
    public static final String MESSAGE_TAG_1008 = "1008";
    /**
     * 1009 店铺下架拒绝
     */
    public static final String MESSAGE_TAG_1009 = "1009";
    /**
     * 1010 店铺下架通过
     */
    public static final String MESSAGE_TAG_1010 = "1010";
    /**
     * 1011 名片上架拒绝
     */
    public static final String MESSAGE_TAG_1011 = "1011";
    /**
     * 1012 名片上架通过
     */
    public static final String MESSAGE_TAG_1012 = "1012";
    /**
     * 1013 店铺过期通知
     */
    public static final String MESSAGE_TAG_1013 = "1013";
    /**
     * 1014 名片过期通知
     */
    public static final String MESSAGE_TAG_1014 = "1014";
    /**
     * 1015 店铺开户拒绝
     */
    public static final String MESSAGE_TAG_1015 = "1015";
    /**
     * 1016 店铺开户通过
     */
    public static final String MESSAGE_TAG_1016 = "1016";
    /**
     * 1017 购买成功通知
     */
    public static final String MESSAGE_TAG_1017 = "1017";
    /**
     * 1018申请合作
     */
    public static final String MESSAGE_TAG_1018 = "1018";
    /**
     * 1019 入驻速易甬
     */
    public static final String MESSAGE_TAG_1019 = "1019";
    /**
     * 1020店铺下线审批
     */
    public static final String MESSAGE_TAG_1020 = "1020";
    /**
     * 1021 店铺上线审批
     */
    public static final String MESSAGE_TAG_1021 = "1021";
    /**
     * 1022 找货大全退款审批（强制）
     */
    public static final String MESSAGE_TAG_1022 = "1022";
    /**
     * 1023 新增成员
     */
    public static final String MESSAGE_TAG_1023 = "1023";
    /**
     * 1024 移除成员
     */
    public static final String MESSAGE_TAG_1024 = "1024";
    /**
     * 1025 成员更换团队
     */
    public static final String MESSAGE_TAG_1025 = "1025";
    /**
     * 1026 名片购买成功财务通知
     */
    public static final String MESSAGE_TAG_1026 = "1026";
    /**
     * 1027 名片退款成功财务通知
     */
    public static final String MESSAGE_TAG_1027 = "1027";
    /**
     * 1028 找货大全退款审批（强制）
     */
    public static final String MESSAGE_TAG_1028 = "1028";
    /**
     * 1029 找货大全退款审批（强制）拒绝
     */
    public static final String MESSAGE_TAG_1029 = "1029";
    /**
     * 1030 报物流 审批
     */
    public static final String MESSAGE_TAG_1030 = "1030";
    /**
     * 1031 报物流 返现金
     */
    public static final String MESSAGE_TAG_1031 = "1031";
    /**
     * 1032 生日提醒
     */
    public static final String MESSAGE_TAG_1032 = "1032";
    /**
     * 1033 我要找货详情
     */
    public static final String MESSAGE_TAG_1033 = "1033";
    /**
     * 1034 商机消息
     */
    public static final String MESSAGE_TAG_1034 = "1034";
    /**
     * 1035 指定商家
     */
    public static final String MESSAGE_TAG_1035 = "1035";
    /**
     * 1036 免费店铺开通
     */
    public static final String MESSAGE_TAG_1036 = "1036";
    /**
     * 1037 返现金申请 审批
     */
    public static final String MESSAGE_TAG_1037 = "1037";
    /**
     * 1038  审批 抄送
     */
    public static final String MESSAGE_TAG_1038 = "1038";
    /**
     * 1039 个人端免费店铺申请
     */
    public static final String MESSAGE_TAG_1039 = "1039";
    /**
     * 1040 商家端免费店铺申请
     */
    public static final String MESSAGE_TAG_1040 = "1040";
    /**
     * 1041 个人端免费店铺结果抄送
     */
    public static final String MESSAGE_TAG_1041 = "1041";
    /**
     * 1042 商家端免费店铺申请结果抄送
     */
    public static final String MESSAGE_TAG_1042 = "1042";
    /**
     * 1043 返现审核消息迁移 （后台消息都发送到1037去处理）
     */
    public static final String MESSAGE_TAG_1043 = "1043";
    /**
     * 1044 商家余额返现-返现申请
     */
    public static final String MESSAGE_TAG_1044 = "1044";
    /**
     * 1045 商家余额返现-充值抄送
     */
    public static final String MESSAGE_TAG_1045 = "1045";
    /**
     * 1046 商家余额返现-退款消息 列表1046
     */
    public static final String MESSAGE_TAG_1046 = "1046";
    /**
     * 1047 店铺上线通过抄送
     */
    public static final String MESSAGE_TAG_1047 = "1047";
    /**
     * 1048店铺下线通过抄送
     */
    public static final String MESSAGE_TAG_1048 = "1048";

    /**
     * 10000 tag 返现40
     */
    public static final String MESSAGE_TAG_10000 = "10000";
    /**
     * 20000 微信咨询
     */
    public static final String MESSAGE_TAG_20000 = "20000";
    /**
     * 30000 电话咨询
     */
    public static final String MESSAGE_TAG_30000 = "30000";
    public static final String SYY_DEFAULT_GRAY = "https://suyiyong.oss-cn-hangzhou.aliyuncs.com/iOS/projectPic/syyDefaultGray.png";

    //业务员端   1000 货圈风险下线  1001 商品风险下线 1002 名片风险下线 1003 货圈上线通过 1004 货圈上线拒绝 1005 商品上架通过 1006 商品上架拒绝  1007 店铺上架拒绝 1008 店铺上架通过 1009 店铺下架拒绝 1010 店铺下架通过 1011 名片上架拒绝 1012 名片上架通过
    // 1013 店铺过期通知  1014 名片过期通知  1015 店铺开户拒绝  1016 店铺开户通过 1017 购买成功通知 1018申请合作 1019 入驻速易甬 1020店铺下线审批  1021 店铺上线审批 1022 强制退款审批 1023 新增业务员 1024 编辑业务员 1025 移除业务员 1026 卡片购买成功消息  1027 卡片退款成功消息 1028 强制通过  1029 强制拒绝
}
